package org.origin.centre.model.enums;


import org.origin.centre.support.base.interfaces.XEnum;

/**
 * 默认状态枚举
 *
 * @author ferret
 * @version 2024-05-08
 */
@SuppressWarnings("unused")
public enum XDefault implements XEnum<Integer> {
    YES(0, "默认"),
    NO(1, "非默认");

    private final Integer code;
    private final String title;

    XDefault(Integer code, String title) {
        this.code = code;
        this.title = title;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getTitle() {
        return this.title;
    }
}